#ifndef __CONFIG_H__
#define __CONFIG_H__

#include "gd32f1x0.h"
#include <stdio.h>
#include <stdlib.h>

#define  PLANT    0
#define  NORMAL   1

#define  ON    1
#define  OFF   0

#define SHUTDOWN_TIME  400


void OS_Time_axis(void);
void OS_Time_axis_CMD(void);

void Uer_OLED(void);

void User_par_yes_flash_Init(void);
void User_par_no_flash_Init(void);
void Check_par_flash_Init(void);


void OS_Time_axis_check(void);
void OS_Time_axis_check_CMD(void);

unsigned short int MyAbs16(short int n);


extern u8 flag_x1ms;  
extern u8 flag_x2ms;
extern u8 flag_x3ms;
extern u8 flag_x4ms;
extern u8 flag_x5ms;


extern float Alt;
extern float SHT20_temp;
extern float SHT20_humi;
extern u16 Bat_test;

extern s16 M3416_ThisHal_data_x;
extern s16 M3416_ThisHal_data_y;	
extern s16 M3416_ThisHal_data_z;
extern float M3416_ThisHal_Pitch;

extern s16 M3416_ThisHal_data_x_W;
extern s16 M3416_ThisHal_data_y_W;	
extern s16 M3416_ThisHal_data_z_W;
extern int16_t M3416_ThisHal_Pitch_W;



#endif
